package top.rtfsc8.web.wro4j.naming;

import java.text.SimpleDateFormat;
import java.util.Date;

import ro.isdc.wro.model.resource.support.naming.TimestampNamingStrategy;

/**
 * http://sunny-kaka.iteye.com/blog/1786564
 * http://meri-stuff.blogspot.sk/2012/08/wro4j-page-load-optimization-and-lessjs.html#Configuration
 * http://alexo.github.com/wro4j/
 * @author Rtfsc8
 *
 */
public class DailyNamingStrategy 
	extends TimestampNamingStrategy {

	@Override
	protected long getTimestamp() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
		String dateStr = sdf.format(new Date());
		return Long.valueOf(dateStr);
	}

}
